package com.yaowk.service.mall.clothing.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;

/**
 * Created by yaowk on 17-10-20.
 * 商品变体
 */
@Getter
@Setter
@ToString
@Entity
@DynamicInsert
@DynamicUpdate
public class CmGoodsVariety extends BaseEntity<Integer> {

    @ColumnDefault("0")
    private Integer sellNumber; // 售出件数
    @ColumnDefault("0")
    private Integer stock; // 库存
}
